<#assign sysFields=["id","deleted","createTime","modifyTime","createById","modifyById"]>
${r'<#assign action="主题">'}
<!-- BEGIN PAGE -->
<head>
    <link rel="stylesheet" href="lib/layui/css/layui.css" media="all">
    <script type="text/javascript" src="lib/layui/layui.all.js"></script>
    <script type="text/javascript" src="assets/data-tables/jquery.datatables.js"></script>
    <script type="text/javascript" src="assets/data-tables/dt_bootstrap.js"></script>
    <script type="text/javascript" src="lib/jframework.table.js"></script>
</head>
<body class="fixed-top">
<!-- BEGIN PAGE -->
<body class="fixed-top">
<!-- BEGIN PAGE CONTAINER-->
<div class="container-fluid">
    <!-- BEGIN PAGE HEADER-->
    <div class="row-fluid">
        <div class="span12">
            <!-- BEGIN PAGE TITLE & BREADCRUMB-->
            <h3 class="page-title">
            ${r"${action}"}</h3>
            <ul class="breadcrumb">
                <li>
                    <a href="#">首页</a>
                    <span class="divider">/</span>
                </li>
                <li>
                    <a href="#">${r"${action}"}</a>
                    <span class="divider">/</span>
                </li>
                <li class="active">
                ${r"${action}"}</li>
            </ul>
            <!-- END PAGE TITLE & BREADCRUMB-->
        </div>
    </div>
    <!-- END PAGE HEADER-->
    <!-- BEGIN ADVANCED TABLE widget-->
    <div class="row-fluid">
        <div class="span12">
            <div class="widget red">
                <div class="widget-title">
                    <h4>
                        <i class="icon-reorder"></i> 查找条件 </h4>
                    <span class="tools">
                            <a href="javascript:" class="icon-chevron-down"></a>
                            </span>
                </div>
                <div class="widget-body">
                    <!-- BEGIN FORM-->
                    <form class="form-vertical jfrom" method="get" action="${r"${base}"}/manage/${table.className?uncap_first}/page.do" data-options="{}">
                    <div class="row-fluid">
                    <#assign fI=1>
                    <#list table.fields as index>
                        <#if sysFields?seq_index_of(index.property) = -1>
                            <#if fI gt 4>
                            </div>
                            <div class="row-fluid">
                                <#assign fI= 1 >
                            </#if>
                            <div class="span3">
                                <#if index.propertyType="String" && index.precision gt 0>
                                    <#if index.columnType="text"><#-- 富文本忽略显示 -->
                                    <#elseif index.precision = 1><#-- 布尔类型 -->
                                        <div class="control-group">
                                            <label class="control-label">${index.remark}</label>
                                            <div class="controls">
                                                <select class="input-large m-wrap" tabindex="1" name="${index.property}">
                                                    <option value="">全部</option>
                                                    <option value="T" ${r"<#if " + table.className?uncap_first + '.' + index.property +'=\'T\'>selected</#if>'}>是</option>
                                                    <option value="F" ${r"<#if " + table.className?uncap_first + '.' + index.property +'=\'F\'>selected</#if>'}>否</option>
                                                </select>
                                            </div>
                                        </div>
                                    <#else>
                                    <#-- 普通字符串 -->
                                        <div class="control-group">
                                            <label class="control-label">${index.remark}</label>
                                            <div class="controls controls-row">
                                                <input type="text" class="input-block-level" placeholder="Text input" name="${index.property}" value="${r'${'+table.className?uncap_first+'.'+index.property}}">
                                            </div>
                                        </div>
                                    </#if>
                                <#elseif index.propertyType="Integer"><#-- 整数 -->
                                    <div class="control-group">
                                        <label class="control-label">${index.remark}</label>
                                        <div class="controls controls-row">
                                            <input type="text" class="input-block-level" placeholder="Text input" digit="true" name="${index.property}" value="${r'${'+table.className?uncap_first+'.'+index.property}}">
                                        </div>
                                    </div>
                                <#elseif index.propertyType="Double"><#-- 数值 -->
                                    <div class="control-group">
                                        <label class="control-label">${index.remark}</label>
                                        <div class="controls controls-row">
                                            <input type="text" class="input-block-level" placeholder="Text input" number="true" name="${index.property}" value="${r'${'+table.className?uncap_first+'.'+index.property}}">
                                        </div>
                                    </div>
                                <#elseif index.propertyType="Date"><#-- 日期 -->
                                    <div class="control-group">
                                        <label class="control-label">${index.remark}</label>
                                        <div class="controls controls-row">
                                            <input type="text" class="input-block-level datepicker" placeholder="Text input" name="${index.property}" value="${r'${'+table.className?uncap_first+'.'+index.property}}">
                                        </div>
                                    </div>
                                <#elseif index.propertyType="Boolean"><#-- 布乐类型 -->
                                    <div class="control-group">
                                        <label class="control-label">${index.remark}</label>
                                        <div class="controls">
                                            <select class="input-large m-wrap" tabindex="1" name="${index.property}">
                                                <option value="">全部</option>
                                                <option value="true" ${r"<#if " + table.className?uncap_first + '.' + index.property +'=\'true\'>selected</#if>'}>是</option>
                                                <option value="false" ${r"<#if " + table.className?uncap_first + '.' + index.property +'=\'false\'>selected</#if>'}>否</option>
                                            </select>
                                        </div>
                                    </div>
                                <#else><#-- 其他类型 -->
                                    <div class="control-group">
                                        <label class="control-label">${index.remark}</label>
                                        <div class="controls controls-row">
                                            <input type="text" class="input-block-level" placeholder="Text input" name="${index.property}" value="${r'${'+table.className?uncap_first+'.'+index.property}}">
                                        </div>
                                    </div>
                                </#if></div>
                            <#assign fI=fI+1>
                        </#if>
                    </#list>
                    </div>
                        <div class="searchform-actions ">
                            <button type="submit" class="btn blue"><i class="icon-ok"></i>查询</button>
                            <a class="btn jbutton" href="${r"${base}"}/manage/${table.className?uncap_first}/add.do">添加</a>
                        </div>
                    </form>
                </div>
            </div>

            <!-- BEGIN EXAMPLE TABLE widget-->
            <div class="widget red">
                <div class="widget-title">
                    <h4><i class="icon-reorder"></i>${r"${action}"}</h4>
                    <span class="tools">
	                                <a href="javascript:" class="icon-chevron-down"></a>
	                            </span>
                </div>
                <div class="widget-body">
                    <table class="table table-striped table-bordered jtable" data-options="{'type':'url',curr:${r'${datas.currentPage},count:${datas.numRows},limit:${datas.limit}}'}">
                        <thead>
                        <tr>
                            <th style="width:8px;"><input type="checkbox" class="group-checkable" data-set=".checkboxes"/></th>
                        <#list table.fields as index>
                            <#if sysFields?seq_index_of(index.property) = -1>
                                <th class="hidden-phone">${index.remark}</th>
                            </#if>
                        </#list>
                            <th class="hidden-phone"></th>
                        </tr>
                        </thead>
                        <tbody>
                        ${r'<#list datas.items as index>'}
                        <tr class="odd gradeX">
                            <td><input type="checkbox" class="checkboxes" value="${r'${index.id}'}"/></td>
                        <#list table.fields as index>
                            <#if sysFields?seq_index_of(index.property) = -1>
                                <#if index.propertyType="String" && index.precision gt 0>
                                    <#if index.columnType="text"><#-- 富文本忽略显示 -->
                                    <#elseif index.precision = 1><#-- 布尔类型 -->
                                        <td class="hidden-phone">${r'<#if index.property="T">是<#else>否</#if>'}</td>
                                    <#else>
                                    <#-- 普通字符串 -->
                                        <td class="hidden-phone">${r'${index.'+index.property}}</td>
                                    </#if>
                                <#elseif index.propertyType="Integer"><#-- 整数 -->
                                    <td class="hidden-phone">${r'${index.'+index.property}}</td>
                                <#elseif index.propertyType="Double"><#-- 数值 -->
                                    <td class="hidden-phone">${r'${index.'+index.property}}</td>
                                <#elseif index.propertyType="Date"><#-- 日期 -->
                                    <td class="hidden-phone">${r'${index.'+index.property}?string("yyyy-MM-dd")}</td>
                                <#elseif index.propertyType="Boolean"><#-- 布乐类型 -->
                                    <td class="hidden-phone">${r'<#if index.property="T">是<#else>否</#if>'}</td>
                                <#else><#-- 其他类型 -->
                                    <td class="hidden-phone">${r'${index.'+index.property}}</td>
                                </#if>
                            </#if>
                        </#list>
                            <td class="hidden-phone">
                                <a class="jbutton" href="${r"${base}"}/manage/${table.className?uncap_first}/edit.do?id=${r"${index.id}"}">修改</a>
                                <a class="jbutton" href="${r"${base}"}/manage/${table.className?uncap_first}/del.do?id=${r"${index.id}"}" data-options="{info:'删除',async:true,after:'location.reload();'}">删除</a>
                                <a class="jbutton" href="${r"${base}"}/manage/${table.className?uncap_first}/info.do?id=${r"${index.id}"}">查看</a>
                            </td>
                        </tr>
                        ${r'</#list>'}
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- END EXAMPLE TABLE widget-->
        </div>
    </div>
    <!-- END ADVANCED TABLE widget-->
</div>
<!-- END PAGE CONTAINER-->
</body>
<!-- END PAGE -->